log/slog.handleState.buf (field)
47 uses
log/slog (current package)
handler.go#L243: pos := state.buf.Len()
handler.go#L246: state.buf.SetLen(pos)
handler.go#L269: state.buf.WriteByte('{')
handler.go#L309: state.buf.WriteByte('\n')
handler.go#L313: _, err := h.w.Write(*state.buf)
handler.go#L320: s.buf.WriteString(s.sep)
handler.go#L321: s.buf.Write(pfa)
handler.go#L337: pos := s.buf.Len()
handler.go#L348: s.buf.SetLen(pos)
handler.go#L355: s.buf.WriteByte('}')
handler.go#L358: s.buf.WriteByte('}')
handler.go#L375: buf *buffer.Buffer
handler.go#L390: buf: buf,
handler.go#L404: s.buf.Free()
handler.go#L427: s.buf.WriteByte('{')
handler.go#L442: s.buf.WriteByte('}')
handler.go#L501: pos := s.buf.Len()
handler.go#L507: s.buf.SetLen(pos)
handler.go#L526: s.buf.WriteString(s.sep)
handler.go#L534: s.buf.WriteByte(':')
handler.go#L536: s.buf.WriteByte('=')
handler.go#L543: s.buf.WriteByte('"')
handler.go#L544: *s.buf = appendEscapedJSONString(*s.buf, str)
handler.go#L545: s.buf.WriteByte('"')
handler.go#L549: *s.buf = strconv.AppendQuote(*s.buf, str)
handler.go#L551: s.buf.WriteString(str)
handler.go#L589: *s.buf = appendRFC3339Millis(*s.buf, t)
json_handler.go#L101: s.buf.WriteByte('"')
json_handler.go#L102: *s.buf = t.AppendFormat(*s.buf, time.RFC3339Nano)
json_handler.go#L103: s.buf.WriteByte('"')
json_handler.go#L111: *s.buf = strconv.AppendInt(*s.buf, v.Int64(), 10)
json_handler.go#L113: *s.buf = strconv.AppendUint(*s.buf, v.Uint64(), 10)
json_handler.go#L118: if err := appendJSONMarshal(s.buf, v.Float64()); err != nil {
json_handler.go#L122: *s.buf = strconv.AppendBool(*s.buf, v.Bool())
json_handler.go#L125: *s.buf = strconv.AppendInt(*s.buf, int64(v.Duration()), 10)
json_handler.go#L134: return appendJSONMarshal(s.buf, a)
text_handler.go#L116: s.buf.WriteString(strconv.Quote(string(bs)))
text_handler.go#L121: *s.buf = v.append(*s.buf)